package com.bdqn.dao;

import com.bdqn.bean.course.Course;
import com.bdqn.bean.course.CourseDirection;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author 忍
 * @title: ICourseDao
 * @projectName Teaching
 * @description: TODO
 * @date 2019/5/2315:00
 */
public interface ICourseDao {
    /**
     * @description: 根据课程id查询课程
     * @param id  课程id
     * @return com.bdqn.bean.course.Course
     * @throws
     * @author Mr.Zhou
     * @date 2019/6/17 22:16
     */
    Course getCourseById(int id);

    /**
     * @description: 根据课程类型 id获取课程
     * @param CouseTypeId
     * @return java.util.List<com.bdqn.bean.course.Course>
     * @throws
     * @author Mr.Zhou
     * @date 2019/6/17 22:17
     */
    List<Course> getCOusesByCourseType(int CouseTypeId);
    /**
     * @description:
     * @param directId, typeId, level, sort, unlearn
     * @return java.util.List<com.bdqn.bean.course.Course>
     * @throws
     * @author Mr.Zhou
     * @date 2019/6/29 22:10
     */
    List<CourseDirection> getCourseByDirectId(@Param("directId") Integer directId,
                                              @Param("typeId") Integer typeId,
                                              @Param("level") String level,
                                              @Param("sort") String sort,
                                              @Param("unlearn") String unlearn,
                                              @Param("courseId") Integer courseId);
}